//package com.cloud.controller;
//
//import com.joyoung.common.controller.RestRes;
//import com.cloud.resp.AccessoryTraceSourceDto;
//import com.cloud.service.AccessoryTraceSourceService;
//import io.swagger.annotations.*;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//
//@RestController
//@RequestMapping("/accessoryTraceSource")
//@Api(value = "accessoryTraceSource", tags = {"溯源配件信息查询"})
//public class AccessoryTraceSourceController {
//    @Resource
//    private AccessoryTraceSourceService accessoryTraceSourceService;
//
//    @ApiOperation(value = "通过配件SN码查询溯源配件信息", tags = {"溯源配件信息查询"}, nickname = "queryAccessoryBySnCode")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "snCode", value = "配件SN码", paramType = "query", dataType = "String")
//    })
//    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功：000000，失败：其他")})
//    @GetMapping("/queryAccessoryBySnCode")
//    public RestRes<AccessoryTraceSourceDto> queryAccessoryBySnCode(@RequestParam("snCode") String snCode) {
//
//        AccessoryTraceSourceDto accessoryTraceSourceDto = accessoryTraceSourceService.queryAccessoryBySnCode(snCode);
//        return RestRes.apiData(accessoryTraceSourceDto);
//    }
//}
